<template>
		<el-upload
		  :action="action"
		  name="video"
		  :show-file-list="true"
		  :on-success="handleAvatarSuccess"
		>
		  <el-button size="small" type="primary">点击上传</el-button>
		</el-upload>
</template>

<script>
export default {
	
	data(){
		return{
			action:this.$get_img+"cms/common/uploads_video"
		}
		
	},
	mounted() {
		
	},
	methods:{
		handleAvatarSuccess(res, file){
		
			let data={
				path:res.data.path
			}
			this.$emit('get_path',data)
	
		}
	}
}
</script>

<style>
</style>
